package com.cuijq.ratelimiter.v1.rule;

import java.util.List;
import lombok.Data;

/**
 * @author by CuiJQ
 * @Classname RuleConfig
 * @Description RuleConfig Description
 * @Date 2021/5/31 21:15
 */
@Data
public class RuleConfig {

  private List<AppRuleConfig> configs;

  public List<AppRuleConfig> getConfigs() {
    return configs;
  }

  public void setConfigs(List configs) {
    this.configs = configs;
  }

  @Data
  public static class AppRuleConfig {

    private String appId;
    private List limits;

    public AppRuleConfig() {
    }

    public AppRuleConfig(String appId, List limits) {
      this.appId = appId;
      this.limits = limits;
    } //...省略getter、setter方法... }
  }
}
